package local;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import dao.GameDao;
import model.Game;

import java.util.List;

/**
 * User: gutnikov
 * Date: 30.09.2010
 */

public class Test {

	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("local/applicationContext.xml");
		GameDao gd = (GameDao)ctx.getBean("gameDao");
		List<Game> rated = gd.getMostRated("action",20,0);

		
	}
}
